﻿<Window x:Class="qly.DSHoaDonWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="DSHoaDonWindow" Height="350" Width="800" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ToolBarTray Grid.Row="0">
            <ToolBar Band="1" BandIndex="1">
                <Button Name="mnNew" ToolTip="New" Click="mnNew_Click_1">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="Imagel\NewDocumentHS.png"/>
                        <TextBlock VerticalAlignment="Center">Thêm mới</TextBlock>
                    </StackPanel>
                </Button>
                <Button Name="mnUpdate" ToolTip="Update" Click="mnUpdate_Click_1">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="Imagel\Properties.png"/>
                        <TextBlock VerticalAlignment="Center">Sửa</TextBlock>
                    </StackPanel>
                </Button>
                <Button Name="mnDelete" ToolTip="Delete" Click="mnDelete_Click">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="Imagel\DeleteHS.png"/>
                        <TextBlock VerticalAlignment="Center">Xóa</TextBlock>
                    </StackPanel>
                </Button>
                <Separator/>
                <Button Name="mnFind" ToolTip="Find">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="Imagel\Find_VS.png"/>
                        <TextBlock VerticalAlignment="Center">Tìm Kiếm</TextBlock>
                    </StackPanel>
                </Button>
                <Button ToolTip="Print" Name="print" Click="print_Click">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="Imagel\PrintHS.png"/>
                        <TextBlock VerticalAlignment="Center">In</TextBlock>
                    </StackPanel>
                </Button>
                <Separator/>
                <Button Name="btClose" ToolTip="Close" Click="btClose_Click">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="Imagel\StopHS.png"/>
                        <TextBlock VerticalAlignment="Center">Thoát</TextBlock>
                    </StackPanel>
                </Button>
            </ToolBar>
        </ToolBarTray>
        <DataGrid Name="datagrid" Grid.Row="1" AutoGenerateColumns="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Số hóa đơn" Width="75" FontWeight="Bold" FontFamily="Times New Roman" Binding="{Binding sohd}"></DataGridTextColumn>
                <DataGridTextColumn Header="Tên hàng" Width="125" FontFamily="Times New Roman" Binding="{Binding tenhang}"></DataGridTextColumn>
                <DataGridTextColumn Header="Số lượng" Width="75" FontFamily="Times New Roman" Binding="{Binding soluong}"></DataGridTextColumn>
                <DataGridTextColumn Header="Đơn giá" Width="100" FontFamily="Times New Roman" Binding="{Binding dongia}"></DataGridTextColumn>
                <DataGridTextColumn Header="Trị giá" Width="100" FontFamily="Times New Roman" Binding="{Binding trigia}"></DataGridTextColumn>
                <DataGridTextColumn Header="Khuyến mãi" Width="100" FontFamily="Times New Roman" Binding="{Binding khuyenmai}"></DataGridTextColumn>
                <DataGridTextColumn Header="Diễn giải" Width="200" Binding="{Binding diengiai}"></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <StatusBar Grid.Row="2">
            <StatusBarItem Name="sbiSohd" Content="Tổng số hóa đơn: "/>
        </StatusBar>
    </Grid>
</Window>
